package easy;

public class a35_搜索插入位置 {
    public int searchInsert(int[] nums, int target) {
        int ans=nums.length-1;
        for(int i=0;i<=ans;i++){
            if(nums[i]>=target){
                return i;
            }
        }
        return nums.length;
    }
}
